﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SlamDunk.CMS.Model
{	
    /// <summary>
    /// Recruitment视图模型类
    /// </summary>
	[Serializable]
	public class RecruitmentView
	{	
        #region 01.属性——Id
        /// <summary>
        /// 属性——Id
        /// </summary>
		public int Id { get; set; }
        #endregion
        
        #region 02.属性——PositionName
        /// <summary>
        /// 属性——PositionName
        /// </summary>
		public string PositionName { get; set; }
        #endregion
        
        #region 03.属性——RequireCount
        /// <summary>
        /// 属性——RequireCount
        /// </summary>
		public int RequireCount { get; set; }
        #endregion
        
        #region 04.属性——Education
        /// <summary>
        /// 属性——Education
        /// </summary>
		public string Education { get; set; }
        #endregion
        
        #region 05.属性——Workplace
        /// <summary>
        /// 属性——Workplace
        /// </summary>
		public string Workplace { get; set; }
        #endregion
        
        #region 06.属性——SkillRequire
        /// <summary>
        /// 属性——SkillRequire
        /// </summary>
		public string SkillRequire { get; set; }
        #endregion
        
        #region 07.属性——Department
        /// <summary>
        /// 属性——Department
        /// </summary>
		public string Department { get; set; }
        #endregion
        
        #region 08.属性——DelFlag
        /// <summary>
        /// 属性——DelFlag
        /// </summary>
		public bool DelFlag { get; set; }
        #endregion
        
        #region 09.属性——AddTime
        /// <summary>
        /// 属性——AddTime
        /// </summary>
		public DateTime AddTime { get; set; }
        #endregion
        
        #region 10.方法——转换为数据模型
        /// <summary>
        /// 转换为数据模型
        /// </summary>
        /// <returns>Recruitment数据模型对象</returns>
        public Model.Recruitment ToDataModel()
        {
            return new Model.Recruitment()
            {
                Id = this.Id,
                PositionName = this.PositionName,
                RequireCount = this.RequireCount,
                Education = this.Education,
                Workplace = this.Workplace,
                SkillRequire = this.SkillRequire,
                Department = this.Department,
                DelFlag = this.DelFlag,
                AddTime = this.AddTime,
            };
        }
        #endregion
	}
}
